package com.htthorizon.powersupply.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.htthorizon.powersupply.domain.TgVoltMonitor;
import com.htthorizon.powersupply.dto.TgLowVoltItem;
import com.htthorizon.powersupply.dto.VoltTgItem;
import com.htthorizon.powersupply.search.VoltTgSearch;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Brilliant
* @description 针对表【tg_volt_monitor】的数据库操作Mapper
* @createDate 2025-01-17 16:55:14
* @Entity com.htthorizon.powersupply.domain.TgVoltMonitor
*/
public interface TgVoltMonitorMapper extends BaseMapper<TgVoltMonitor> {

    Integer getMaxTime(@Param("dataDt") String dataDt);

    List<TgLowVoltItem> getStatistics(@Param("type") String type, @Param("maxTime") Integer maxTime, @Param("dataDt") String dataDt);

    List<VoltTgItem> getVoltTgItems(@Param("search") VoltTgSearch search, @Param("type") String type, @Param("maxTime") Integer maxTime, @Param("dataDt") String dataDt);

    List<TgLowVoltItem> getUsersCount(@Param("list")List<TgLowVoltItem> list,@Param("dataDt")String dataDt);

}




